package com.bean.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 学生评价表实体类
 */
public class StudentComment implements Serializable {
    private Integer id;//纯数字主键
    private Long studentId;
    private Integer subjectId;
    private Integer teacherId;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date commentTime;
    private Integer evaluateId;

    @Override
    public String toString() {
        return "StudentComment{" +
                "id=" + id +
                ", studentId=" + studentId +
                ", subjectId=" + subjectId +
                ", teacherId=" + teacherId +
                ", commentTime=" + commentTime +
                ", evaluateId=" + evaluateId +
                '}';
    }

    public StudentComment() {
    }

    public StudentComment(Integer id) {
        this.id = id;
    }

    public StudentComment(Long studentId) {
        this.studentId = studentId;
    }

    public StudentComment(Long studentId, Integer subjectId, Integer teacherId, Date commentTime, Integer evaluateId) {
        this.studentId = studentId;
        this.subjectId = subjectId;
        this.teacherId = teacherId;
        this.commentTime = commentTime;
        this.evaluateId = evaluateId;
    }

    public StudentComment(Integer subjectId, Integer teacherId, Date commentTime) {
        this.subjectId = subjectId;
        this.teacherId = teacherId;
        this.commentTime = commentTime;
    }

    public StudentComment(Integer id, Long studentId, Integer subjectId, Integer teacherId, Date commentTime, Integer evaluateId) {
        this.id = id;
        this.studentId = studentId;
        this.subjectId = subjectId;
        this.teacherId = teacherId;
        this.commentTime = commentTime;
        this.evaluateId = evaluateId;
    }

    public StudentComment(Integer id, Long studentId, Integer subjectId, Integer teacherId, Date commentTime) {
        this.id = id;
        this.studentId = studentId;
        this.subjectId = subjectId;
        this.teacherId = teacherId;
        this.commentTime = commentTime;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Long getStudentId() {
        return studentId;
    }

    public void setStudentId(Long studentId) {
        this.studentId = studentId;
    }

    public Integer getSubjectId() {
        return subjectId;
    }

    public void setSubjectId(Integer subjectId) {
        this.subjectId = subjectId;
    }

    public Integer getTeacherId() {
        return teacherId;
    }

    public void setTeacherId(Integer teacherId) {
        this.teacherId = teacherId;
    }

    public Date getCommentTime() {
        return commentTime;
    }

    public void setCommentTime(Date commentTime) {
        this.commentTime = commentTime;
    }

    public Integer getEvaluateId() {
        return evaluateId;
    }

    public void setEvaluateId(Integer evaluateId) {
        this.evaluateId = evaluateId;
    }
}
